<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="DeathGhost" />
<title>博客系统后台登录页面-Powered by Java靖</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link href="../css/bootstrap.min.css" rel="stylesheet">
	<link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
	<link href="../css/animate.css" rel="stylesheet">
	<link href="../css/style.css" rel="stylesheet">
	<link href="../css/login.css" rel="stylesheet">
	<!--[if lt IE 9]>
	<meta http-equiv="refresh" content="0;ie.html" />
	<script src="lay-ui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
<script>
		function checkForm(){
			var userName=$("#userName").val();
			var password=$("#password").val();
			if(userName==null||userName==""){
				alert('用户名不能为空！');
				return false;
			}
			if(password==null||password==""){
				alert('密码不能为空！');
				return false;
			}
			return true;
		}
	</script>
</head>
<body class="signin">
<form action="${pageContext.request.contextPath}/blogger/login.do" method="post" onsubmit="return checkForm()">
<div class="signinpanel">
	<div class="row">
		<div class="col-sm-12">
			<form method="post" action="/blogger/login.do">
				<h4 class="no-margins">登录：</h4>
				<p class="m-t-md">登录到倾城博客系统</p>
				<input type="text" id="userName" name="userName"   class="form-control uname" placeholder="用户名" />
				<input type="password" id="password" name="password" class="form-control pword m-b" placeholder="密码" />
				<button type="submit" class="btn btn-success btn-block">登录</button>
			</form>
		</div>
	</div>
	<div class="signup-footer">
		<div class="pull-center">
			<p align="center">Copyright © 2019-2020 倾城博客网 版权所有</p>
			<p align="center">京ICP备19048541号-1</p>
		</div>
	</div>
</div>
</form>
</body>
</html>